/*
接口请求函数模块
返回值: promise对象
 */
import {get,post} from './http'

//跨域请求服务器变更地址
const url = '/api';

export const search = (data) => get(url + "/search", data);
export const category = (data) => post(url + "/category", data);
export const article = (data) => post(url + "/article", data);
export const articleDetail = (data) => get(url + "/articleDetail", data);
